# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=libomemo-c
pkgver=0.5.0
pkgrel=1
pkgdesc='Fork of libsignal-protocol-c adding support for OMEMO XEP-0384 0.5.0+'
arch=(loong64 x86_64)
url='https://github.com/dino/libomemo-c'
license=(GPL)
depends=(glibc)
makedepends=(cmake)
source=(https://github.com/dino/libomemo-c/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('03195a24ef7a86c339cdf9069d7f7569ed511feaf55e853bfcb797d2698ba983')

build() {
  cmake -B build -S $pkgname-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_SHARED_LIBS=ON
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}

